package com.android.lovely.room.chat.database

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface ChatModelDao {
    @Query("SELECT * FROM ChatDataBean WHERE bot_id = :botId")
    fun get(botId: String): ChatDataBean?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun put(value: ChatDataBean)
}